home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global sGame1, laGameChoisie, nomPartie
- set sGame1 to 12
- if voidp(nomPartie) then
- set enCours to 1
- set laGameChoisie to 1
- else
- set enCours to the value of char 5 of nomPartie
- set laGameChoisie to the value of char 5 of nomPartie
- end if
- repeat with i = sGame1 + 12 to sGame1 + 17
- puppetSprite(i, 1)
- set the visible of sprite i to 1
- end repeat
- puppetSprite(32, 1)
- set the visible of sprite (sGame1 + 11 + enCours) to 0
- set the locH of sprite 32 to the locH of sprite (sGame1 + enCours - 1)
- updateStage()
- repeat with g = 1 to 6
- set laGame to value(the text of member g of castLib "LRdata")
- set cpt to 0
- repeat with i = 1 to 30
- if getAt(laGame, i) <> 27 then
- set cpt to cpt + 1
- end if
- end repeat
- set leText to EMPTY & RETURN & "puzzles solved"
- put string(cpt) into line 1 of leText
- if cpt < 2 then
- put "puzzle" into word 1 of line 2 of leText
- end if
- set nom to "score" & g
- set the text of field nom to leText
- end repeat
- updateStage()
- end
-